<!DOCTYPE HTML>
    <html>
        <body>

            <canvas id="myCanvas" width="1000" height="1000"
             style="border:1px solid #c3c3c3;">
            Your browser does not support the canvas element.
            </canvas>

        <script type="text/javascript">

            var c=document.getElementById("myCanvas");
            var cxt=c.getContext("2d");
            var img=new Image()
            img.src="./../2.jpg"
            cxt.drawImage(img,0,0);

        </script>

        </body>
    </html>
